package com.ding.common;


import com.alibaba.fastjson.JSONObject;

public class Message {

    //id
    private String id;

    //密码
    private String password;

    //引荐者id
    private String introducerId;

    //类型
    private String type;

    //信息
    private String msg;

    private Integer heartbeatInterval;

    public Message heartbeatInterval(int heartbeatInterval) {
        this.heartbeatInterval = heartbeatInterval;
        return this;
    }

    public Integer getHeartbeatInterval() {
        return heartbeatInterval;
    }

    public void setHeartbeatInterval(Integer heartbeatInterval) {
        this.heartbeatInterval = heartbeatInterval;
    }

    //id
    public Message id(String id) {
        this.id = id;
        return this;
    }


    //密码
    public Message password(String password) {
        this.password = password;
        return this;
    }

    //引荐者id
    public Message introducerId(String introducerId) {
        this.introducerId = introducerId;
        return this;
    }

    //类型
    public Message type(String type) {
        this.type = type;
        return this;
    }

    //信息
    public Message msg(String msg) {
        this.msg = msg;
        return this;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIntroducerId() {
        return introducerId;
    }

    public void setIntroducerId(String introducerId) {
        this.introducerId = introducerId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    //自己做自己的构造器

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }

}
